package Runde3;

public class Square extends Rectangle implements RegularPolygon {

	//Creates a new square with the given side lengths; a > 0
	public Square (int a) {
		super(a,a);
	}

	//Sets the square's side lengths to the given length; length > 0
	public void set(double length) {
		double actLength = perimeter()/4;
		scale(length/actLength);
	}

}
